export interface RequestInterceptor {
  onRequest?: (config: any) => Promise<any> | any;
  onRequestError?: (error: any) => Promise<any> | any;
}

export interface ResponseInterceptor {
  onResponse?: (response: any) => Promise<any> | any;
  onResponseError?: (error: any) => Promise<any> | any;
}

export const interceptors = {
  request: [] as RequestInterceptor[],
  response: [] as ResponseInterceptor[],
};
